/**
 * Copyright 2012 Balaji Thennarangam
 */
package com.kathez.ops.test;

import java.util.Properties;

import com.kathez.test.TestData;
import com.kathez.test.TestDataGenerator;
import com.kathez.util.commonutils.KathezUtils;
import com.kathez.util.commonutils.PropertyLoader;

/**
 * @author Balaji.T
 * @version 1.0
 * @since 1.0
 */
public class UserRegistrationTestGenerator implements TestDataGenerator {

	/* (non-Javadoc)
	 * @see com.kathez.test.TestDataGenerator#generateTestData()
	 */
	@Override
	public TestData generateTestData() {
		UserRegistrationTestData testData = new UserRegistrationTestData();
		testData.setFirstName(PropertyLoader.getProperty("UserRegistrationTest","input.firstName"));
		testData.setLastName(PropertyLoader.getProperty("UserRegistrationTest","input.lastName"));
		testData.setDateOfBirth(KathezUtils.convertStringToDate(PropertyLoader.getProperty("UserRegistrationTest","input.dateOfBirth")));
		testData.setEmailId(PropertyLoader.getProperty("UserRegistrationTest","input.emailId"));
		testData.setCountry(PropertyLoader.getProperty("UserRegistrationTest","input.country"));
		testData.setZipCode(PropertyLoader.getProperty("UserRegistrationTest","input.zipCode"));
		return testData;
	}

}
